// @ts-nocheck
import React from 'react';
import { ApplyPluginsType } from 'C:/Users/高海瑶/Desktop/front-project/node_modules/_@umijs_runtime@3.4.14@@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": require('@/layouts/index.tsx').default,
    "routes": [
      {
        "path": "/archives",
        "exact": true,
        "component": require('@/pages/archives/index.tsx').default
      },
      {
        "path": "/Detail/:id",
        "exact": true,
        "component": require('@/pages/Detail/[id].tsx').default
      },
      {
        "path": "/",
        "exact": true,
        "component": require('@/pages/index.tsx').default
      },
      {
        "path": "/knowledge",
        "exact": true,
        "component": require('@/pages/knowledge/index.tsx').default
      },
      {
        "path": "/knowledgeDeatil/:id",
        "exact": true,
        "component": require('@/pages/knowledgeDeatil/[id].tsx').default
      },
      {
        "path": "/page/about",
        "exact": true,
        "component": require('@/pages/page/about/index.tsx').default
      },
      {
        "path": "/page/msgboard",
        "exact": true,
        "component": require('@/pages/page/msgboard/index.tsx').default
      },
      {
        "path": "/titledeatil/:id",
        "exact": true,
        "component": require('@/pages/titledeatil/[id].tsx').default
      },
      {
        "path": "/:value",
        "exact": true,
        "component": require('@/pages/[value]/index.tsx').default
      }
    ]
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
